package cn.bone.ou.community.param;

import lombok.Data;
import org.jeecgframework.poi.excel.annotation.Excel;

import javax.validation.constraints.NotNull;

public class HouseParam {

    @Data
    public static class ListParam{
        @NotNull
        private Integer communityId;
        @NotNull
        private Integer start;
        @NotNull
        private Integer num;
        private String buildNum;
        private String unitNum;
        private String houseNum;
        private Integer isAuth;
    }

    @Data
    public static class AddParam {
        @NotNull
        private Integer communityId;
        @NotNull
        private String buildNum;
        @NotNull
        private String unitNum;
        @NotNull
        private String houseNum;

        private Double saleArea;            //销售面积
        private Double realArea;            //实际面积
        private Integer houseType;          //房屋类型
    }

    @Data
    public static class ModifyParam{
        @NotNull
        private Integer houseId;
        @NotNull
        private String buildNum;
        @NotNull
        private String unitNum;
        @NotNull
        private String houseNum;

        private Double saleArea;            //销售面积
        private Double realArea;            //实际面积
        private Integer houseType;          //房屋类型
    }

    @Data
    public static class UsableParam{
        @NotNull
        private Integer houseId;
    }

    @Data
    public static class DisableParam{
        @NotNull
        private Integer houseId;
    }

    @Data
    public static class DeleteParam {
        private Integer houseId;
    }

    @Data
    public static class ExcelImportParam{
        @NotNull
        @Excel(name = "楼栋",orderNum = "0")
        private String buildNum;
        @NotNull
        @Excel(name = "单元",orderNum = "1")
        private String unitNum;
        @NotNull
        @Excel(name = "房号",orderNum = "2")
        private String houseNum;
        @Excel(name = "销售面积",orderNum = "3")
        private Double saleArea;            //销售面积
        @Excel(name = "实际面积",orderNum = "4")
        private Double realArea;            //实际面积
    }

}
